//
// Created by u on 23-7-25.
//

#ifndef CLOUD_CHINT_SRC_DEVICEINFO_HPP_
#define CLOUD_CHINT_SRC_DEVICEINFO_HPP_
#include <iostream>

class deviceInfo {
public:
	uint32_t id;
	std::string sn;
	std::string type;
	std::string model;
	std::string status;

	deviceInfo(const uint32_t&& id, const std::string&& sn, const std::string&& type, const std::string&& model, const std::string&& status):
		id(id), sn(sn), type(type), model(model), status(status){
	}

	deviceInfo(const uint32_t& id, const std::string& sn, const std::string& type, const std::string& model, const std::string& status):
		id(id), sn(sn), type(type), model(model), status(status){
	}

	explicit deviceInfo(const uint32_t& id)
		: id(id){}

	deviceInfo()
		: id(-1){}

	std::string getProdKey() const {
//		return sn.size() > 8 ? sn.substr(2, 6) : "";
		return model;
	}
};

#endif //CLOUD_CHINT_SRC_DEVICEINFO_HPP_
